//
//
//盘点
//
//
//
var config = {
	/**
     * 增删改查，api地址
     * @total 获取总条数api
     * @get   获取数据api
     * @edit  修改数据api
     *
     * model        类名
     * action       方法名 
     */
    set_url: {
        "total": { model: "goods", action: "get_goods_total" },
        "get": { model: "goods", action: "get_goods_all" },
        "edit": { model: "goods", action: "on_goods_edit" }
    },

    /**
     * 筛选配置
     * @type {Array}
     */
    select:[
		[{
            label: "日期",
            type: "date",
            field: "date",
            placeholder: "请选择日期",
            span: 6
		},{
            label: "",
            type: "select",
            field: "warehouse",
            placeholder: "选则仓库",
            span: 4,
            option:[{
            	value:1,
            	label:'全部仓库'
            },{
            	value:2,
            	label:"一号仓库"
            },{
            	value:3,
            	label:"二号仓库"
            }]
		},{
            label: "",
            type: "select",
            field: "type",
            placeholder: "选择类别",
            span: 4,
            option:[{
            	value:1,
            	label:'夏季'
            },{
            	value:2,
            	label:"冬季"
            }]
		},{
            label: "商品",
            type: "input",
            field: "date",
            placeholder: "请选择日期",
            span: 6
		},{
            label: "",
            type: "checkbox",
            field: "checkbox",
            span: 4,
            option:[{
            	value:1,
            	label:'零库存'
            },{
            	value:2,
            	label:"显示禁用商品"
            }]
		}]
	],

	/**
	 * 表格操作按钮配置
	 */
	action:[{
        label: "保存盘点结果",
        type: "primary",
        icon: "",
        callback: {
            type: 'target',
            path: 'goods_fix',
        }
	},{
        label: "导出系统库存",
        type: "primary",
        icon: "",
        callback: {
            type: 'target',
            path: 'goods_fix',
        }
	},{
        label: "导入盘点库存",
        type: "primary",
        icon: "",
        callback: {
            type: 'target',
            path: 'goods_fix',
        }
	},{
        label: "生成盘点单据",
        type: "primary",
        icon: "",
        callback: {
            type: 'target',
            path: 'goods_fix',
        }
	}],

	/**
	 * 表格配置
	 */
	selection:false,
	model:"input",
	table:[{
        label: "仓库",
        type: "input",
        field: "warehouse",
        labelWidth: 100,
        sortable: false,
        amend:false,
	},{
        label: "商品类别",
        type: "input",
        field: "goods_type",
        labelWidth: 100,
        sortable: false,
        amend:false,
	},{
        label: "商品编号",
        type: "input",
        field: "goods_sn",
        labelWidth: 100,
        sortable: false,
        amend:false,
	},{
        label: "商品名称",
        type: "input",
        field: "goods_name",
        labelWidth: 140,
        sortable: false,
        amend:false,
	},{
        label: "属性",
        type: "input",
        field: "attribute",
        labelWidth: 100,
        sortable: false,
        amend:false,
	},{
        label: "规格型号",
        type: "input",
        field: "model",
        labelWidth: 100,
        sortable: false,
        amend:false,
	},{
        label: "单位",
        type: "unit",
        field: "warehouse",
        labelWidth: 80,
        sortable: false,
        amend:false,
	},{
        label: "系统库存",
        type: "input",
        field: "system_invent",
        labelWidth: 100,
        sortable: false,
        amend:false,
	},{
        label: "盘点库存",
        type: "input",
        field: "inventory",
        labelWidth: 100,
        sortable: false,
        amend:false,
	},{
        label: "盘盈盘亏",
        type: "input",
        field: "profit",
        labelWidth: 100,
        sortable: false,
        amend:false,
	}],

	/**
	 * 分页配置
	 */
	page:{
        size: 10,
        current: 1,
        total: 100
	}
}
export default config;